import requests

from Apis.baseApi import BaseAPi
from common.config import ip
class LoginAPI(BaseAPi):
    def login(self,loginData={"username": "admin", "password": "123456"}):
        # loginData = {"username": "admin", "password": "123456"}
        s = requests.post(f"{ip}/login", data=loginData)
        print(s.json())
       #获取token
        # token =s.json()["Admin-Token"]
        return s



